export let ajaxFn = function(method,url,callback){
    let xhr = new XMLHttpRequest();
    xhr.open(method,url);
    xhr.send();
    xhr.onreadystatechange = function(){
        if(xhr.readyState===4){
            console.log(123456);
            if(xhr.status>=200&&xhr.status<300){
                console.log(xhr.response);
                callback(xhr.response);
            }
        }
    }
}